<!DOCTYPE html>
<html>
<head>
    <?php include(__DIR__ . '/../Public/header.php'); ?>
    <style type="text/css">

    </style>
</head>
<body class="skin-black">
<?php include(__DIR__ . '/../Public/nav.php'); ?>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="left-side sidebar-offcanvas">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- search form -->
            <form action="#" method="get" class="sidebar-form">
                <div class="input-group">
                    <input type="text" name="q" class="form-control" placeholder="Search..."/>
                    <span class="input-group-btn">
                        <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                    </span>
                </div>
            </form>
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li class="active">
                    <a href="index.html">
                        <i class="fa fa-dashboard"></i> <span>Dashboard</span>
                    </a>
                </li>
                <li>
                    <a href="general.html">
                        <i class="fa fa-gavel"></i> <span>General</span>
                    </a>
                </li>

                <li>
                    <a href="basic_form.html">
                        <i class="fa fa-globe"></i> <span>Basic Elements</span>
                    </a>
                </li>

                <li>
                    <a href="simple.html">
                        <i class="fa fa-glass"></i> <span>Simple tables</span>
                    </a>
                </li>

            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>
    <aside class="right-side">
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <section class="panel">
                        <header class="panel-heading">交易列表</header>
                        <div class="panel-body table-responsive">
                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th></th>
                                        <th>币  名</th>
                                        <th>最新价格(CNY)</th>
                                        <th>24H成交量</th>
                                        <th>24H成交额(CNY)</th>
                                        <th>总市值(CNY)</th>
                                        <th>24H涨跌</th>
                                        <th>7天涨跌</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach($currency as $key=>$vo){ ?>
                                    <tr>
                                        <td></td>
                                        <td><a href="<?=url('market/trade',array('currency'=>$vo['currency_mark']))?>"><?=$vo['currency_name']?><?=$vo['currency_mark']?></a></td>
                                        <td>
                                            <?php if($vo['new_price_status']){ ?>
                                            <span class="buy"><?=$vo['new_price']?></span>
                                            <?php }else{ ?>
                                            <span class="sell"><?=$vo['new_price']?></span>
                                            <?php } ?>
                                        </td>
                                        <td><?=($vo['24H_done_num']?$vo['24H_done_num']:0)?></td>
                                        <td><?=($vo['24H_done_money']?$vo['24H_done_money']:0)?></td>
                                        <td><?=$vo['currency_all_money']?></td>
                                        <td><?=$vo['24H_change']?></td>
                                        <td><?=$vo['7D_change']?></td>
                                    </tr>
                                    <?php }?>
                                </tbody>
                            </table>
                        </div>
                    </section>
                </div><!--end col-12 -->
            </div>
        <!-- row end -->
        </section><!-- /.content -->

        <div class="footer-main">
            Copyright &copy Director, 2014. More Templates
        </div>
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->
<?php include(__DIR__ . '/../Public/footer.php'); ?>

</body>
</html>